package date20200923.com.kgc.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class GoodDetail {
    private int id;
    private GoodSort goodSort;
    private String name;
    private String address;
    private double price;

    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date createDate;
    private int remaining;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public GoodSort getGoodSort() {
        return goodSort;
    }

    public void setGoodSort(GoodSort goodSort) {
        this.goodSort = goodSort;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getRemaining() {
        return remaining;
    }

    public void setRemaining(int remaining) {
        this.remaining = remaining;
    }

    @Override
    public String toString() {
        return "GoodDetail{" +
                "id=" + id +
                ", goodSort=" + goodSort +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", createDate=" + createDate +
                ", remaining=" + remaining +
                '}';
    }
}
